raar.world
Class RAWorldObjectMovable

java.lang.Object
  extended by vectorimage.VectorObject
      extended by raar.world.RAWorldObject
          extended by raar.world.RAWorldObjectMovable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RAAgent

public class RAWorldObjectMovable
extends RAWorldObject

A movable world object is... movable :)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.world.RAWorldObject
SOBJ_AGENT, SOBJ_TRACE
 
Fields inherited from class vectorimage.VectorObject
OBJ_ELLIPSE, OBJ_LINE, OBJ_RECTANGLE
 
Constructor Summary
RAWorldObjectMovable(java.lang.String className, java.lang.String name, int type, java.awt.geom.Rectangle2D.Double bounds, double rotation, java.awt.Color color, boolean isStatic, boolean fixed, boolean massive, boolean light, double delay)
          Construct the shape.
 
Method Summary
 void resetPR()
          Reset position and rotation to original.
 void setPR(java.awt.geom.Point2D.Double position, double rotation)
          Notify of original position and rotation.
 
Methods inherited from class raar.world.RAWorldObject
createGVectorObject, emitsLight, getClassName, getName, isFixed, isLight, isMassive, isMovable, isStatic, moveBy
 
Methods inherited from class vectorimage.VectorObject
contains, getBounds, getColor, getPosition, getRotation, getType, isFilled, setBounds, setPosition, setRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAWorldObjectMovable

public RAWorldObjectMovable(java.lang.String className,
                            java.lang.String name,
                            int type,
                            java.awt.geom.Rectangle2D.Double bounds,
                            double rotation,
                            java.awt.Color color,
                            boolean isStatic,
                            boolean fixed,
                            boolean massive,
                            boolean light,
                            double delay)
Construct the shape.

Method Detail

setPR

public void setPR(java.awt.geom.Point2D.Double position,
                  double rotation)
Notify of original position and rotation.


resetPR

public void resetPR()
             throws RAException
Reset position and rotation to original.

Throws:
RAException